{template 'common/header'}

<form action="" method="post" class="form-horizontal form" >
<input type="hidden" name="id" value="{$settings['id']}" />
           
<div class="main" >

    <div class="panel panel-default">
        <div class="panel-heading">
            <h3 class="panel-title">短信设置</h3>
        </div>
        <div class="panel-body">
            <div class="form-group">
                <label for="verify" class="col-sm-2 control-label">是否开启人工审核</label>
                <div class="col-sm-10">
                    <label for="radio_1" class="radio-inline">
                        <input type="radio" name="verify" id="verify" value="1" {if $settings[ 'verify']==1 } checked{/if} /> 审核</label>
                    <label for="radio_0" class="radio-inline">
                        <input type="radio" name="verify" id="verify" value="0" {if empty($settings[ 'verify']) && $settings[ 'verify']==0 } checked{/if} /> 不审核</label>
                    <span class="help-block">开启人工审核后，用户绑定需要管理人员审核方可使用物业相关功能，默认不开启审核</span>
                </div>
            </div>
            <div class="form-group">
                <label for="businesscode" class="col-sm-2 control-label">是否开启商家短信验证</label>
                <div class="col-sm-10">
                    <label for="radio_1" class="radio-inline">
                        <input type="radio" name="businesscode" id="businesscode" value="1" {if $settings[ 'businesscode']==1 } checked{/if} /> 验证</label>
                    <label for="radio_0" class="radio-inline">
                        <input type="radio" name="businesscode" id="businesscode" value="0" {if empty($settings[ 'businesscode']) && $settings[ 'businesscode']==0 } checked{/if} /> 不验证</label>
                    <span class="help-block">开启短信验证后，用户注册商家信息时自动验证其手机号的真实性（发送验证码）。</span>
                </div>
            </div>
            <div class="form-group">
                <label for="verifycode" class="col-sm-2 control-label">是否开启注册短信验证</label>
                <div class="col-sm-10">
                    <label for="radio_1" class="radio-inline">
                        <input type="radio" name="verifycode" id="verifycode" value="1" {if $settings[ 'verifycode']==1 } checked{/if} /> 验证</label>
                    <label for="radio_0" class="radio-inline">
                        <input type="radio" name="verifycode" id="verifycode" value="0" {if empty($settings[ 'verifycode']) && $settings[ 'verifycode']==0 } checked{/if} /> 不验证</label>
                    <span class="help-block">开启短信验证后，用户注册微小区信息时自动验证其手机号的真实性（发送验证码）。</span>
                </div>
            </div>
            <div class="form-group">
                <label for="report_type" class="col-sm-2 control-label">是否开启报修投诉</label>
                <div class="col-sm-10">
                    <label for="radio_1" class="radio-inline">
                        <input type="radio" name="report_type" id="report_type" value="1" {if $settings[ 'report_type']==1 } checked{/if} /> 验证</label>
                    <label for="radio_0" class="radio-inline">
                        <input type="radio" name="report_type" id="report_type" value="0" {if empty($settings[ 'report_type']) && $settings[ 'report_type']==0 } checked{/if} /> 不验证</label>
                    <span class="help-block">开启报修投诉后，用户报修投诉信息会自动发给小区管理员手机号（发送验证码）。</span>
                </div>
            </div>
            <div class="form-group">
                <label for="shopping_status" class="col-sm-2 control-label">是否开启超市发货短信提醒</label>
                <div class="col-sm-10">
                    <label for="radio_1" class="radio-inline">
                        <input type="radio" name="shopping_status" id="shopping_status" value="1" {if $settings[ 'shopping_status']==1 } checked{/if} /> 是</label>
                    <label for="radio_0" class="radio-inline">
                        <input type="radio" name="shopping_status" id="shopping_status" value="0" {if empty($settings[ 'shopping_status']) && $settings[ 'shopping_status']==0 } checked{/if} /> 否</label>
                    <span class="help-block">开启短信提醒后，商家发货自动通过短信发送给购买者。</span>
                </div>
            </div>
                <div class="form-group">
                    <label for="property_status" class="col-sm-2 control-label">是否开启物业费缴费短信提醒</label>
                    <div class="col-sm-10">
                        <label for="radio_1" class="radio-inline">
                            <input type="radio" name="property_status" id="property_status" value="1" {if $settings[ 'property_status']==1 } checked{/if} /> 是</label>
                        <label for="radio_0" class="radio-inline">
                            <input type="radio" name="property_status" id="property_status" value="0" {if empty($settings[ 'property_status']) && $settings[ 'property_status']==0 } checked{/if} /> 否</label>
                        <span class="help-block">开启短信提醒后，可通过短信通知小区用户催缴物业费。</span>
                    </div>
                </div>
                <div class="form-group">
                    <label for="reportid" class="col-sm-2 control-label">报修投诉模板ID</label>
                    <div class="col-sm-10">
                        <input type="text" name="reportid" id='reportid' class="form-control" value="{$settings['reportid']}" />
                        <span class='help-block'>
                            注意：先去聚合，申请如下的模板：【报修】报修信息#content#,报修人电话#mobile#，物业#company#
                        </span>
                    </div>
                </div>
                <div class="form-group">
                    <label for="resgisterid" class="col-sm-2 control-label">注册微小区模板ID</label>
                    <div class="col-sm-10">
                        <input type="text" name="resgisterid" id='resgisterid' class="form-control" value="{$settings['resgisterid']}" />
                        <span class='help-block'>
                            注意：先去聚合，申请如下的模板：【微小区】您的验证码是#code#。如非本人操作，请忽略本短信
                          </span>
                    </div>
                </div>
            <div class="form-group">
                    <label for="shopping_id" class="col-sm-2 control-label">超市发货模板ID</label>
                    <div class="col-sm-10">
                        <input type="text" name="shopping_id" id='shopping_id' class="form-control" value="{$settings['shopping_id']}" />
                        <span class='help-block'>
                          注意：先去聚合，申请如下的模板：【微小区】您的快递是#express_name#,快递单号#express_code#。有任何问题请随时与我们联系，谢谢。
                       </span>
                    </div>
            </div>
            <div class="form-group">
                    <label for="property_id" class="col-sm-2 control-label">物业费催缴模板ID</label>
                    <div class="col-sm-10">
                        <input type="text" name="property_id" id='property_id' class="form-control" value="{$settings['property_id']}" />
                        <span class='help-block'>
                注意：先去聚合，申请如下的模板：【微小区】您好,您本月物业费已出。物业费金额#price#。请尽快缴纳，如有疑问，请咨询#phone#。
              </span>
                    </div>
                </div>
                <div class="form-group">
                    <label for="sms_account" class="col-sm-2 control-label">短信接口Key</label>
                    <div class="col-sm-10">
                        <input type="text" name="sms_account" id='sms_account' class="form-control" value="{$settings['sms_account']}" />
                        <p class="help-block">目前暂时1个短信平台(聚合数据http://www.juhe.cn/)</p>
                    </div>
                </div>
                <div class="form-group">
                    <label for="" class="col-sm-2 control-label"></label>
                    <div class="col-sm-10">
                        <button type="submit" class="btn btn-primary span3" name="submit" value="提交">提交</button>
                        <input type="hidden" name="token" value="{$_W['token']}" />
                    </div>
                </div>
        </div>
    </div>

</div>
</form>
              
{template 'common/footer'}
